/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.system.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 优信通岗位映射Entity
 * @author jyangye
 * @version 2018-04-16
 */
public class ViSysRoleMap extends DataEntity<ViSysRoleMap> {
	
	private static final long serialVersionUID = 1L;
	private String viPostName;		// 岗位名称
	private String viDeptName;		// 部门名称
	private String sysRoleName;		// 优信通角色
	private String sysRoleId;		// 优信通角色ID
	private String sysPostName;		// 优信通部门名称
	private String isActive;		// 是否可用
	private String zone;		// 区域
	private String createdBy;		// 创建者

    private String errMsg;
	
	public ViSysRoleMap() {
		super();
	}

	public ViSysRoleMap(String id){
		super(id);
	}

	@Length(min=1, max=32, message="岗位名称长度必须介于 1 和 32 之间")
	@ExcelField(title="*岗位名称", align=2, sort=20)
	public String getViPostName() {
		return viPostName;
	}

	public void setViPostName(String viPostName) {
		this.viPostName = viPostName;
	}
	
	@Length(min=0, max=32, message="部门名称长度必须介于 0 和 32 之间")
	@ExcelField(title="部门名称", align=2, sort=30)
	public String getViDeptName() {
		return viDeptName;
	}

	public void setViDeptName(String viDeptName) {
		this.viDeptName = viDeptName;
	}
	
	@Length(min=1, max=32, message="优信通角色长度必须介于 1 和 32 之间")
	@ExcelField(title="*优信通角色", align=2, sort=40)
	public String getSysRoleName() {
		return sysRoleName;
	}

	public void setSysRoleName(String sysRoleName) {
		this.sysRoleName = sysRoleName;
	}
	
	@Length(min=0, max=32, message="优信通角色ID长度必须介于 0 和 32 之间")
	@ExcelField(title="*优信通角色ID", align=2, sort=50)
	public String getSysRoleId() {
		return sysRoleId;
	}

	public void setSysRoleId(String sysRoleId) {
		this.sysRoleId = sysRoleId;
	}
	
	@Length(min=1, max=32, message="优信通部门名称长度必须介于 1 和 32 之间")
	@ExcelField(title="*优信通部门名称", align=2, sort=60)
	public String getSysPostName() {
		return sysPostName;
	}

	public void setSysPostName(String sysPostName) {
		this.sysPostName = sysPostName;
	}
	
	@Length(min=1, max=1, message="是否可用长度必须介于 1 和 1 之间")
	@ExcelField(title="*是否可用", align=2, sort=70, dictType = "yes_no")
	public String getIsActive() {
		return isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}
	
	@Length(min=1, max=32, message="区域长度必须介于 1 和 32 之间")
	@ExcelField(title="*区域", align=2, sort=80, dictType = "emp_zone")
	public String getZone() {
		return zone;
	}

	public void setZone(String zone) {
		this.zone = zone;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

    @ExcelField(title="错误信息", type = 1, align=2, sort=80)
    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}